Xbasic

JavaScript Functions

Description

Alpha Anywhere provides the following functions for working with JavaScript files.

Name
Description
a5_make_jquery_safe Function

Processes a Javascript file and replaces all instaces where '$' is used to reference the jQuery object with 'jQuery' so that the Javascript is safe to use in Alpha Anywhere.

convert_ts_to_js function

Converts TypeScript files to JavaScript files.

js_escape Function

Formats a string so it will be properly encoded for use in Javascript.

js_list_to_array Function

Takes a CR-LF delimited list of values and generates a string in Javascript array syntax.

js_unescape Function

Parse a javascript string.

Xbasic_execute_Javascript Function

Execute JavaScript code on the server side using the JavaScript engine in Node.js.